//
//  showIdentfierSureView.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/10/26.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "showIdentfierSureView.h"

@implementation showIdentfierSureView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIImageView *imageV = [[UIImageView alloc] init];
        [self addSubview:imageV];
        [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.equalTo(self);
            make.height.mas_equalTo(scaleTopAndBottom(100));
        }];
        UIButton *delBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [delBtn setTitle:@"果断取消" forState:0];
        [delBtn setTitleColor:COLOR_HEX(0xffc91f) forState:UIControlStateNormal];
        [self addSubview:delBtn];
        UIButton *sureBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [sureBtn setTitle:@"我要填写" forState:0];
        [sureBtn setTitleColor:COLOR_HEX(0xffc91f) forState:UIControlStateNormal];
        [self addSubview:sureBtn];
        UIView *lineView = [[UIView alloc] init];
        [self addSubview:lineView];
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.mas_centerX);
            make.size.mas_equalTo(CGSizeMake(0.5, scaleTopAndBottom(11.5)));
            make.bottom.equalTo(self.mas_bottom).offset(scaleTopAndBottom(17.5));
        }];
        [delBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self);
            make.right.equalTo(lineView.mas_left);
            make.bottom.equalTo(self.mas_bottom).offset(scaleTopAndBottom(15));
            make.height.mas_equalTo(scaleTopAndBottom(50));
            
        }];
        [sureBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self);
            make.left.equalTo(lineView.mas_right);
            make.bottom.equalTo(self.mas_bottom).offset(scaleTopAndBottom(15));
            make.height.mas_equalTo(scaleTopAndBottom(50));
            
        }];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
